Skip to content

build: remove redundant -fuse-linker-plugin from GCC LTO flags#62667

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
robertsLando:build-remove-fuse-linker-plugin
Apr 13, 2026
Merged

build: remove redundant -fuse-linker-plugin from GCC LTO flags#62667
nodejs-github-bot merged 1 commit intonodejs:mainfrom
robertsLando:build-remove-fuse-linker-plugin

Conversation

@robertsLando
Copy link
Copy Markdown
Contributor

The -fuse-linker-plugin flag has been automatically enabled by GCC
since version 5 when LTO is active, making the explicit flag
redundant. Since Node.js requires GCC >= 13.2, this flag serves no
purpose.

Removing it also improves portability with alternative linkers (mold,
lld) that may not support GCC's linker plugin interface, avoiding
build failures when these linkers are used with GCC LTO builds.

Refs: yao-pkg/pkg#231

The `-fuse-linker-plugin` flag has been automatically enabled by GCC
since version 5 when LTO is active, making the explicit flag
redundant. Since Node.js requires GCC >= 13.2, this flag serves no
purpose.

Removing it also improves portability with alternative linkers (mold,
lld) that may not support GCC's linker plugin interface, avoiding
build failures when these linkers are used with GCC LTO builds.

Refs: yao-pkg/pkg#231
Signed-off-by: Daniel Lando <daniel.sorridi@gmail.com>
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. labels Apr 10, 2026
@richardlau richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 10, 2026
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 10, 2026
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

@robertsLando
Copy link
Copy Markdown
Contributor Author

Am I supposed to do something for the broken test or is it just flaky?

@targos
Copy link
Copy Markdown
Member

targos commented Apr 13, 2026

It's probably flaky. I rerun it.

@richardlau richardlau added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 13, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 13, 2026
@nodejs-github-bot nodejs-github-bot merged commit 91d83c3 into nodejs:main Apr 13, 2026
78 of 79 checks passed
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Landed in 91d83c3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants